<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	template="/resources/scaffold/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="id" value="#{stockTransactionBean.id}"/>
		<f:event type="preRenderView" listener="#{stockTransactionBean.retrieve}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="View Stock Transaction"/>

	<ui:define name="header">
		Stock Transaction
	</ui:define>

	<ui:define name="subheader">
		View existing Stock Transaction
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:panelGrid columnClasses="label,component,required" columns="3">
			<h:outputLabel for="stockTransactionBeanStockTransactionCreatedOn" value="Created On:"/>
			<h:outputText id="stockTransactionBeanStockTransactionCreatedOn" value="#{stockTransactionBean.stockTransaction.createdOn}">
				<f:convertDateTime type="date"/>
			</h:outputText>
			<h:outputText/>
			<h:outputLabel for="stockTransactionBeanStockTransactionDirection" value="Direction:"/>
			<h:outputText id="stockTransactionBeanStockTransactionDirection" value="#{stockTransactionBean.stockTransaction.direction}"/>
			<h:outputText/>
			<h:outputLabel for="stockTransactionBeanStockTransactionIsDeleted" value="Is Deleted:"/>
			<h:outputText id="stockTransactionBeanStockTransactionIsDeleted" value="#{stockTransactionBean.stockTransaction.isDeleted}"/>
			<h:outputText/>
			<h:outputLabel for="stockTransactionBeanStockTransactionModifiedOn" value="Modified On:"/>
			<h:outputText id="stockTransactionBeanStockTransactionModifiedOn" value="#{stockTransactionBean.stockTransaction.modifiedOn}">
				<f:convertDateTime type="date"/>
			</h:outputText>
			<h:outputText/>
			<h:outputLabel for="stockTransactionBeanStockTransactionPricePerUnit" value="Price Per Unit:"/>
			<h:outputText id="stockTransactionBeanStockTransactionPricePerUnit" value="#{stockTransactionBean.stockTransaction.pricePerUnit}"/>
			<h:outputText/>
			<h:outputLabel for="stockTransactionBeanStockTransactionPriceTotal" value="Price Total:"/>
			<h:outputText id="stockTransactionBeanStockTransactionPriceTotal" value="#{stockTransactionBean.stockTransaction.priceTotal}"/>
			<h:outputText/>
			<h:outputLabel for="stockTransactionBeanStockTransactionQuantity" value="Quantity:"/>
			<h:outputText id="stockTransactionBeanStockTransactionQuantity" value="#{stockTransactionBean.stockTransaction.quantity}"/>
			<h:outputText/>
			<h:outputLabel for="stockTransactionBeanStockTransactionTableId" value="Table Id:"/>
			<h:outputText id="stockTransactionBeanStockTransactionTableId" value="#{stockTransactionBean.stockTransaction.tableId}"/>
			<h:outputText/>
			<h:outputLabel for="stockTransactionBeanStockTransactionTransactionDate" value="Transaction Date:"/>
			<h:outputText id="stockTransactionBeanStockTransactionTransactionDate" value="#{stockTransactionBean.stockTransaction.transactionDate}"/>
			<h:outputText/>
			<h:outputLabel for="stockTransactionBeanStockTransactionCustomerId" value="Customer Id:"/>
			<h:outputText id="stockTransactionBeanStockTransactionCustomerId" value="#{stockTransactionBean.stockTransaction.customerId}"/>
			<h:outputText/>
			<h:outputLabel for="stockTransactionBeanStockTransactionStockId" value="Stock Id:"/>
			<h:outputText id="stockTransactionBeanStockTransactionStockId" value="#{stockTransactionBean.stockTransaction.stockId}"/>
			<h:outputText/>
			<h:outputLabel for="stockTransactionBeanStockTransactionCreatedBy" value="Created By:"/>
			<h:outputText id="stockTransactionBeanStockTransactionCreatedBy" value="#{stockTransactionBean.stockTransaction.createdBy}"/>
			<h:outputText/>
			<h:outputLabel for="stockTransactionBeanStockTransactionModifiedBy" value="Modified By:"/>
			<h:outputText id="stockTransactionBeanStockTransactionModifiedBy" value="#{stockTransactionBean.stockTransaction.modifiedBy}"/>
			<h:outputText/>
			<h:outputLabel for="stockTransactionBeanStockTransactionSoldBy" value="Sold By:"/>
			<h:outputText id="stockTransactionBeanStockTransactionSoldBy" value="#{stockTransactionBean.stockTransaction.soldBy}"/>
			<h:outputText/>
		</h:panelGrid>

		<div class="buttons">
			<h:link value="View All" outcome="search" styleClass="btn btn-primary"/> 
			<h:link value="Edit" outcome="create" includeViewParams="true" styleClass="btn btn-primary"/>
			<h:link value="Create New" outcome="create" styleClass="btn btn-primary"/>
		</div>
	</ui:define>

</ui:composition>